# Menu 9 − User Functions 1

Menu 9 provides the parameters for the following features:

1. Logic functions
2. Motorised Pot
3. Binary Sum
4. Timers

Logic functions

The logic functions are always active even if the sources and destinations are not routed to valid parameters. If the sources are not valid parameters then the source values are taken as 0. The update rate for each of the logic functions is always 4ms

The logic function consists of an AND gate with inverters on each input and an inverter on the output. Some of the other standard logic functions can be produced as shown in the table below.

Logic function | Source 1 Invert | Source 2 Invert | Output Invert
AND | 0 | 0 | 0
NAND | 0 | 0 | 1
OR | 1 | 1 | 1
NOR | 1 | 1 | 0

A delay function is provided at the output of the logic functions. If Logic Function 1 Delay (09.009) or Logic Function 2 Delay (09.019) is positive then the output does not become 1 until the input to the delay has been at 1 for the delay time. If Logic Function 1 Delay (09.009) or Logic Function 2 Delay (09.019) is negative then the output remains at 1 until the input to the delay has been 0 for the delay time.

Motorised pot

If Motorised Pot Reset (09.028) = 1 then the motorised pot is disabled and held in its reset state with Motorised Pot Output (09.003) = 0.0%. If Motorised Pot Reset (09.028) = 0 the motorised pot is enabled even if Motorised Pot Destination (09.025) is not routed to a valid parameter. The sample rate of the motorised pot is always 4ms.

When the motorised pot is active Motorised Pot Output (09.003) can be increased or decreased by setting Motorised Pot Up (09.026) or Motorised Pot Down (09.027) to 1 respectively. If both Motorised Pot Up (09.026) and Motorised Pot Down (09.027) are 1 then Motorised Pot Output (09.003) is increased. The rate of change of Motorised Pot Output (09.003) is defined by Motorised Pot Rate (09.023) which gives the time to change from 0 to 100%. The time to change from -100% to 100% is Motorised Pot Rate (09.023) x 2. If Motorised Pot Bipolar Select (09.022) = 0 then Motorised Pot Output (09.003) is limited in the range 0.00% to 100.00%, otherwise it is allowed to change in the range from -100.00% to 100.00%.

Motorised Pot Mode (09.021) defines the mode of operation as given in the table below.

Motorised Pot Mode (09.021) | Motorised Pot Output (09.003) | Motorised Pot Up (09.026) and Motorised Pot Down (09.027) active
0 | Reset to zero at power-up | Always
1 | Set to power-down value at power-up | Always
2 | Reset to zero at power-up | When Drive Active (10.002) = 1
3 | Set to power-down value at power-up | When Drive Active (10.002) = 1
4 | Reset to zero at power-up and when Drive Active (10.002) = 0 | When Drive Active (10.002) = 1

Motorised Pot Scaling (09.024) introduces a scaling factor at the output of the motorised pot before the output is routed to the destination. If Motorised Pot Scaling (09.024) Motorised Pot Scaling (09.024) > 1.000 the output will exceed the range of the destination parameter, and so the destination parameter will be at its maximum or minimum before the output of the motorised pot reaches the limits of its range.

Binary sum

The binary sum function is always active even if the destination is not routed to valid a parameter. The update rate for the binary sum is always 4ms.

The output of the binary sum block is given by

Binary Sum Output (09.032) = Binary Sum Offset (09.034) + (Binary Sum Ones (09.029) x 1) + (Binary Sum Twos (09.030) x 2) + (Binary Sum Fours (09.031) x 4)

Binary Sum Destination (09.033) defines the destination for the binary sum output. The routing for this destination is special if the maximum of the destination parameter ≤ 7 + [Binary Sum Offset (09.034)] as follows:

Destination parameter = Binary Sum Output (09.032), subject to the parameter minimum

Otherwise Binary Sum Output (09.032) is routed in the same way as any other destination where the destination target is at its full scale value when the Binary Sum Output (09.032) = 7 + Offset.

Timers

If the enable input to a timer is active and the repeat function is set to a non-zero value then the timer is active even if the destination is not routed to valid a parameter. The timers are updated in the background task and have a resolution of 1s.

The following is a description of Timer 1, but Timer 2 behaves in the same way. If Timer 1 Invert = 0 then Timer 1 Output (09.042) is inactive before the Timer 1 Start Date (09.035) / Timer 1 Start Time (09.036), active between this date/time and Timer 1 Stop Date (09.037) / Timer 1 Stop Time (09.038) and then inactive after the stop time/date within the timer 1 repeat period as shown in the diagram below.

Timer 1 Repeat Function (09.039) defines the length of the repeat period. For example if Timer 1 Repeat Function (09.039) = 2 then the repeat period is one day. The output is inactive until the time reaches the hour, minute and second defined in Timer 1 Start Time (09.036), and remains active until the time reaches the hour, minute and second defined in Timer 1 Stop Time (09.038). Different repeat periods may be selected as given in the table below. The table shows the constituent parts of the date and time that are used to determine the start and stop events. If the repeat period is set to every week then Timer 1 Start Date (09.035) and Timer 1 Stop Date (09.037) define the day of the week and not the date (i.e. 00.00.00 = Sunday, 00.00.01 = Monday, etc.). If the stop time event is set to occur at or before the start time event or the Timer 1 Repeat Function (09.039) = 0 or Timer 1 Enable (09.040) = 0 the output remains inactive at all times (i.e. Timer 1 Output (09.042) = 0 if Timer 1 Invert = 0).

Timer 1 Repeat Function (09.039) | Repeat period | Second | Minute | Hour | Day | Month | Year | Day of week
0 | None |  |  |  |  |  |  |
1 | Hour | • | • |  |  |  |  |
2 | Day | • | • | • |  |  |  |
3 | Week | • | • | • |  |  |  | •
4 | Month | • | • | • | • |  |  |
5 | Year | • | • | • | • | • |  |
6 | One off | • | • | • | • | • | • |
7 | Minute | • |  |  |  |  |  |

As Timer 1 Invert inverts the timer output it can be used to give an active state of 0 instead of 1. Alternatively it can be used to give an active state of 1, but for a time period that spans the ends of the repeat period as shown in the example above. It should be noted that if this method is used to allow the active period to span the ends of the repeat period then if the timer is disabled the output of the timer block before the invert becomes 0, and so the final output of the timer after the invert is 1.

If Date/Time Selector (06.019) is changed and the drive is reset then the source for the timers will change, therefore Timer 1 Repeat Function (09.039) and Timer 2 Repeat Function (09.049) are reset to 0 to disable the timers and the date and time entries in the trip log are cleared.